import service from "../utils/request";

// 图片上传
export const Upload = (params: any) => {
  return service.post("/api/news/imageRecords/upload", params, {
    headers: {
      // 浏览器会自动设置正确的 Content-Type（含 multipart 边界）
      "Content-Type": "multipart/form-data",
    },
  });
};

// 获取图片审核详情
export const Details = (params: any) => {
  return service.get("/api/news/imageRecords/detail/" + params.recordId);
};

// 获取图片审核任务列表
export const AuditList = (params: any) => {
  return service.post("/api/news/imageRecords/list", params);
};
